package org.yonggan.web.util;

import java.util.HashMap;
import java.util.Map;

public enum ClassGrade {
	
	//年段：1托班;2小班;3中班;4大班;
	
	NURSERY_CLASS(1,"托班"),
	PRIMARY_CLASS(2,"小班"),
	MIDDLE_CLASS(3,"中班"),
	LARGE_CLASS(4,"大班");

	private int type;
	private String label;
	private static Map<Integer, String> maps = new HashMap<Integer, String>();
	
	static {
		for (ClassGrade platform : ClassGrade.values()) {
			maps.put(platform.type, platform.label);
		}
	}
	
	private ClassGrade(int type, String label) {
		this.type = type;
		this.label = label;
	}
	
	public static String getLabel(int type) {
		return maps.get(type);
	}
	
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	
	
	

}
